﻿using MapleLeaf.DataBase.Entity;
using SqlSugar;

namespace MapleLeaf.Model.CookBook {
    /// <summary>
    /// 菜谱
    /// </summary>
    [SugarTable("recipe")]
    public class RecipeEntity : AbstractBaseEntity {
        /// <summary>
        /// 菜谱名称
        /// </summary>
        [SugarColumn(ColumnDescription = "菜谱名称", Length = 100, IsNullable = false)]
        public string Name { get; set; }

        /// <summary>
        /// 菜谱描述
        /// </summary>
        [SugarColumn(ColumnDescription = "菜谱描述", Length = 500, IsNullable = true)]
        public string? Description { get; set; }

        /// <summary>
        /// 菜谱图片URL
        /// </summary>
        [SugarColumn(ColumnDescription = "菜谱图片URL", Length = 200, IsNullable = true)]
        public string? ImageUrl { get; set; }


        /// <summary>
        /// 菜谱标签
        /// </summary>
        [SugarColumn(ColumnDescription = "菜谱标签", IsNullable = true)]
        public string? Tags { get; set; } 


        /// <summary>
        /// 菜谱步骤
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<string> Steps { get; set; } = [];
    }





}
